import { DEL_USERINFO, SET_USERINFO } from '../actionTypes'
const initState = {}
export default function user (state = initState, { type, payload }) {
  console.log(type, payload)
  if (type === SET_USERINFO) {
    return payload
  } else if (type === DEL_USERINFO) {
    return {}
  }
  return state
}
